package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 首页幻灯对象 sys_banner
 * 
 * @author mcrgood
 * @date 2024-08-23
 */
public class SysBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String img;

    /** 连接地址 */
    @Excel(name = "连接地址")
    private String src;

    /** PC端启用 */
    @Excel(name = "PC端启用")
    private Integer pc;

    /** 移动端启用 */
    @Excel(name = "移动端启用")
    private Integer mobile;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertdate;

    /**  */
    @Excel(name = "")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setSrc(String src) 
    {
        this.src = src;
    }

    public String getSrc() 
    {
        return src;
    }

    public void setPc(Integer pc) 
    {
        this.pc = pc;
    }

    public Integer getPc() 
    {
        return pc;
    }

    public void setMobile(Integer mobile) 
    {
        this.mobile = mobile;
    }

    public Integer getMobile() 
    {
        return mobile;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setInsertdate(Date insertdate) 
    {
        this.insertdate = insertdate;
    }

    public Date getInsertdate() 
    {
        return insertdate;
    }

    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("img", getImg())
            .append("src", getSrc())
            .append("pc", getPc())
            .append("mobile", getMobile())
            .append("sort", getSort())
            .append("insertdate", getInsertdate())
            .append("state", getState())
            .toString();
    }
}
